package com.vogue.supplymall.admin.business.domain.dao.impl;

import com.vogue.supplymall.admin.business.domain.dao.AdminPlatformDao;
import com.vogue.supplymall.admin.business.domain.mapper.AdminPlatformMapper;
import com.vogue.supplymall.admin.business.domain.model.AdminPlatform;
import org.springframework.stereotype.Repository;

import java.util.List;

import javax.annotation.Resource;

/**
 * The type Admin platform dao.
 *
 * @aouthor: zhangliang
 * @date: Create in 2018-04-26
 */
@Repository("adminPlatformDao")
public class AdminPlatformDaoImpl extends BaseDaoImpl<AdminPlatform, Long> implements AdminPlatformDao {
    @Resource
    private AdminPlatformMapper adminPlatformMapper;

	@Override
	public AdminPlatform getAPInfoBySyscodeId(Long syscodeId) {
		AdminPlatform ap=null;
		
		List<AdminPlatform> apList=adminPlatformMapper.getAPInfoBySyscodeId(syscodeId);
		
		if(apList.size()>0) {
			ap=apList.get(0);
		}
		
		return ap;
	}
    
    
}
